package chapter10.p;

public class P7 {
	private int id = 10;
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return this.id;
	}
	private void printId() {
		System.out.println("ID:" + id);
	}
	class Inner {
		int i = 5;
		public void change() {
			setId(i);
		}
	}
	public Inner create() {
		return new Inner();
	}
	public static void main(String[] args) {
		P7 p = new P7();
		p.create().change();
		p.printId();
	}
}
